package afcp.alumni.action.page;

import net.sourceforge.stripes.action.DefaultHandler;
import net.sourceforge.stripes.action.ForwardResolution;
import net.sourceforge.stripes.action.Resolution;
import net.sourceforge.stripes.action.UrlBinding;
import afcp.alumni.action.base.PageAction;

@UrlBinding(value=ErrorAction.URL)
public class ErrorAction extends PageAction {
	
	public static final String URL = "/notallowed";
	@Override
	public String getUrl() {
		return URL;
	}
	
	private static final String JSP = "/WEB-INF/jsp/error_401.jsp";

	@Override
	@DefaultHandler
	public Resolution view() {
		return new ForwardResolution(defaultJsp());
	}

	@Override
	public String getTitle() {
		return "Authentification requise";
	}

	@Override
	protected String defaultJsp() {
		return JSP;
	}

//	@Override
//	@Before
//	protected void setPageVisitedBoolean() {
//	}

}
